//
//  AIFactsListViewCell.m
//  Mia
//
//  Created by Vill on 2024/2/27.
//

#import "AIFactsListViewCell.h"

@interface AIFactsListViewCell()

// 标题
@property (weak, nonatomic) IBOutlet UILabel *titleLbl;
// 内容
@property (weak, nonatomic) IBOutlet UILabel *contentLbl;

@property (weak, nonatomic) IBOutlet UIView *containBg;

@end

@implementation AIFactsListViewCell

+(instancetype)cellWithTableView:(UITableView *)tableView{
    static NSString *ID = @"AIFactsListViewCell";
    AIFactsListViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if(cell == nil){
       cell = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil].lastObject;
    }
    return cell;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.containBg.layer.cornerRadius = PTW(10);
    self.containBg.layer.masksToBounds = YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setTitle:(NSString *)title withContent:(NSString *)content{
    self.titleLbl.text = title;
    self.contentLbl.text = content;
}

@end
